/*
	Programação Concorrente
	Trabalho 2
	Turma A

	Adilson Abreu Couto Rapozo Junior ( n. USP: 6402336 )
	Luiz Alfredo Bertoni ( n. USP: 6418834 )
	Rodrigo Fernandes da Costa ( n. USP: 6793073 )
*/

#include "main.h"

int isPalindrome ( char * pWord ) {

	int i ;
	int size ;

	size = strlen ( pWord ) ;

	for ( i = 0 ; i < size / 2 ; ++ i ) {

		if ( toupper ( pWord [ i ] ) != toupper ( pWord [ size - i - 1 ] ) ) { /* Don't take into account the case of the characters. */

			return 0 ;
		}
	}

	return 1 ;
}

